SOCKETS.OPEN Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.OPEN Method.xml
Open an existing socket - mode is S for server, C for client, L for Listen (server without accept), R for server with reuse address flag.
SOCKETS.DATAGRAM_KILL Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.DATAGRAM_KILL Method.xml
Close down a datagram handler.
SOCKETS.DATAGRAM_SEND Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.DATAGRAM_SEND Method.xml
Send data to a host/port.
SOCKETS.ADDRESS_GET Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.ADDRESS_GET Method.xml
Get the ip address of an open socket. (R = remote IP, L = local IP)
SOCKETS.PORT_GET Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.PORT_GET Method.xml
Get the port for an open socket. (R = remote port, L = local port)
SOCKETS.OPTIONS_SET Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.OPTIONS_SET Method.xml
Set options ([-]L-Linger K-Keep Alive R-Reuse Address N-Don't route [-]D-elay X-Debug - I=#/O=# - internal input output buffer controls T=# TS=# TR=# timout in milliseconds for timeout on send/receive or timeout [S]end,[R]ecieve ).
SOCKETS.OPTIONS_GET Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.OPTIONS_GET Method.xml
Get options (A-accepting L-Linger K-Keep Alive R-Reuse Address N-Don't route D-elay X-Debug - I=input buffer O=output buffer T=timeout - '' escapes characters ).
SOCKETS.DATAGRAM_SEND_WITH_RECEIPT Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.DATAGRAM_SEND_WITH_RECEIPT Method.xml
Send data to a host/port wait for returned response.
SOCKETS.DATAGRAM_HANDLER Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.DATAGRAM_HANDLER Method.xml
Setup an named asynchronous handler - when input matches the 'match string' , the code will be invoked with the incoming string in a_message.
Handling Errors
/documentation/pages/Ref/Xbasic/Handling Errors.xml
An important part of writing any program is handling potential errors properly. You should do the same when writing an Xbasic script, making sure it can recover from some common run-time errors (e.g., when a file is not found, the disk is full, or the table is opened exclusively by another session or user).